<?php
$this->Html->addCrumb('<i class="fa fa-home"></i> ' . Inflector::camelize($this->request->params ['prefix']), '/' . $this->request->params ['prefix'] . '/', array('escape' => false));
$this->Html->addCrumb(__('Categorys'), array('prefix' => $this->request->params['prefix'], 'controller' => $this->request->params['controller'], 'plugin' => $this->request->params['plugin'], 'action' => 'index'), array('escape' => false));
$this->Html->addCrumb(__('List'), NULL, array('escape' => false));

$this->Html->setAcoes('<i class="fa fa-plus"></i>' . __('New'), array('action' => 'add'), array('title' => __('new'), 'class' => 'btn btn-success', 'escapeTitle' => false));
$this->Html->setAcoes('<i class="fa fa-search"></i>' . __('List'), array('action' => 'index'), array('title' => __('List'), 'class' => 'btn btn-info', 'escapeTitle' => false));
?>

<?php
echo $this->Form->create('Category', array(
    'inputDefaults' => array(
        'div' => array('class' => 'form-group col-xs-12 col-md-6'),
        'wrapInput' => false,
        'class' => 'form-control col-xs-12'
    ),
    'class' => 'form-group',
    'role' => 'form'
));

echo $this->Form->input('Category.name', array('label' => __('Name')));
echo $this->Form->input('Category.slug', array('label' => __('Slug')));
echo $this->Form->input('Category.parent_id', array('label' => __('Parent_id')));
echo $this->Form->status('Category.active', array('label' => __('Active')));
echo $this->Form->editor('Category.description', array('label' => __('Description'), 'div' => array('class' => 'col-xs-12 col-md-12')));
echo '<div class="text-right"><ul><li style="display: inline-block;margin:10px 3px 0px 3px;">';
echo $this->Form->button(__('Save'), array('class' => 'btn btn-primary'));
echo '</li></ul></div>';
echo $this->Form->end();
?>